package cn.itcast.order;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * ------------------------------------------------------
 * 0.新建seata数据库,并导入seata.sql
 *   新建seata_demo数据库,并导入seata_demo.sql
 * ------------------------------------------------------
 * 1.使用了nacos注册中心：
 * 需要启动nacos服务  localhost:8848/nacos   nacos/nacos
 * ------------------------------------------------------
 * 2.使用了seata处理分布式事务，
 * 需要启动seata服务
 * ------------------------------------------------------
 */
@MapperScan("cn.itcast.order.mapper")
@EnableFeignClients
@SpringBootApplication
public class OrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class, args);
    }
}
